package L01;
//线程池


import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public class L20 {
    public static void main (String[] args) {
        ExecutorService pool= Executors.newFixedThreadPool (5);

        //提供一个任务到线程池中
        pool.submit (new Runnable () {
            @Override
            public void run () {
                System.out.println ("任务1");
            }
        });

    }


}
